<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@3"></script>
</head>
<body>
    <div id="app">
        请选择登录方式:
        <input type="radio" value="QQ" v-model="meth" checked>QQ登录
        <input type="radio" value="微信" v-model="meth">微信登录
        <input type="radio" value="手机" v-model="meth">手机登录
        <br>
        <div v-if="meth=='QQ'||meth==''">
            <h1>{{meth}}登录</h1>
            {{meth}}号<input type="text"><br>
            密码<input type="text"><br>
            <button>登录</button>    
        </div>
        <div v-if="meth=='微信'">
            <h1>{{meth}}登录</h1>
            {{meth}}号<input type="text"><br>
            密码<input type="text"><br>
            <button>登录</button>
        </div>
        <div v-if="meth=='手机'">
            <h1>{{meth}}登录</h1>
            {{meth}}号<input type="text"><br>
            验证码<input type="text"><br>
            <button>登录</button>
        </div>
        
    </div>
</body>
</html>
<script>
    const app = Vue.createApp({
        data() {
            return {
                meth:'QQ'
            }
        },


    }).mount("#app")


</script>